﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcContrib.PortableAreas;

namespace nanoCMS.StaticPages.WebUI
{
    public class StaticPagesRegistration : PortableAreaRegistration
    {
        public override string AreaName
        {
            get { return "StaticPages"; }
        }

        public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context, IApplicationBus bus)
        {
            bus.Send(new PortableAreaStartupMessage(AreaName));
            context.MapRoute("StaticPagesDefault", "StaticPages/{controller}/{action}", new { controller = "StaticPages", action = "Index" });
            RegisterAreaEmbeddedResources();
        }
    }
}
